package com.zjf.carpark.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @description:出入场信息
 * @author: 张建飞
 * @createDate: 2019/12/20
 * @version: 1.0
 */
public class AccessInfo {
    private String accessId;//出入信息Id
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date inDate;//入场时间

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date outDate;//出场时间

    private double cost;//费用
    private Boolean deleteState;//删除状态
    private String carNum;

    private String inImg;//入场影像
    private String outImg;//出场影像
    private String type;//车辆类型

    public AccessInfo() {
    }

    public AccessInfo(String accessId, Date inDate, Date outDate, double cost, Boolean deleteState, String carNum, String inImg, String outImg, String type) {
        this.accessId = accessId;
        this.inDate = inDate;
        this.outDate = outDate;
        this.cost = cost;
        this.deleteState = deleteState;
        this.carNum = carNum;
        this.inImg = inImg;
        this.outImg = outImg;
        this.type = type;
    }

    public String getAccessId() {
        return accessId;
    }

    public void setAccessId(String accessId) {
        this.accessId = accessId;
    }

    public Date getInDate() {
        return inDate;
    }

    public void setInDate(Date inDate) {
        this.inDate = inDate;
    }

    public Date getOutDate() {
        return outDate;
    }

    public void setOutDate(Date outDate) {
        this.outDate = outDate;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public Boolean getDeleteState() {
        return deleteState;
    }

    public void setDeleteState(Boolean deleteState) {
        this.deleteState = deleteState;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getInImg() {
        return inImg;
    }

    public void setInImg(String inImg) {
        this.inImg = inImg;
    }

    public String getOutImg() {
        return outImg;
    }

    public void setOutImg(String outImg) {
        this.outImg = outImg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "AccessInfo{" +
                "accessId='" + accessId + '\'' +
                ", inDate=" + inDate +
                ", outDate=" + outDate +
                ", cost=" + cost +
                ", deleteState=" + deleteState +
                ", carNum='" + carNum + '\'' +
                ", inImg='" + inImg + '\'' +
                ", outImg='" + outImg + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
